var encoding = require('encoding')
var xdb = require('xdb')

function main() {
  xdb.new('zcx', `/database/zcx`)
  const document = JSON.parse(encoding.from(payload.body))
  return xdb.dropDocumentByID('zcx', 'menu', document.id)
}
